<Query Kind="Statements">
  <NuGetReference>SharpSvn</NuGetReference>
  <Namespace>SharpSvn</Namespace>
  <Namespace>System.Net</Namespace>
</Query>

string _remote = "https://vc2000/svn/Test";
string _local = @"C:\Users\zeros\Downloads\WorkSpace";

using SvnClient _client = new SvnClient();
NetworkCredential _credential = new NetworkCredential("Administrator", "sicont_server");
_client.Authentication.Clear();
_client.Authentication.DefaultCredentials = _credential;
_client.Authentication.SslServerTrustHandlers += (sender, e) =>
{
    e.AcceptedFailures = e.Failures;
    e.Save = true;
};

// note: 从 Remote 端读取所有的 Project
// note: 然后从 Local 端读取工作副本的信息, 判断哪些 Project 已经同步了

// 遍历 Remote 仓库的直接子目录（项目文件夹）
//SvnListArgs _list_args = new() { Depth = SvnDepth.Children };
//_client.GetList(_remote, _list_args, out var _list_collection);
//_list_collection.Dump();

// 读取本地的工作副本的状态
string _path = @"C:\Users\zeros\Downloads\Test";
_client.GetInfo(new SvnPathTarget(_path), out var _info);
_info.Dump();

